<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <div class="table-responsive">
            <div>
                <button type="button" class="btn btn-info btn-xs icon-plus" ng-click="newTask()">新建</button>
                <button type="button" class="btn btn-info btn-xs icon-edit" ng-click="editTask()">修改</button>
                <button type="button" class="btn btn-info btn-xs icon-minus" ng-click="deleteTask()">删除</button>
                <button type="button" class="btn btn-info btn-xs icon-refresh" ng-click="refreshTask()">刷新</button>
            </div>
            <table class="table table-bordered table-hover table-striped" style="margin-top:10px;">
                <tr>
                    <th></th>
                    <th>序号</th>
                    <th>任务名称</th>
                    <th>实现类</th>
                    <th>任务组</th>
                    <th>任务状态</th>
                    <th>cron表达式</th>
                    <th>生效时间</th>
                    <th>失效时间</th>
                    <th>任务操作</th>
                </tr>
                <tr ng-repeat="item in tasks" class="select2-active">
                    <td><input type="radio" name="tasklist_radio" id="{{item.id}}" value="{{item.id}}"></td>
                    <td>{{item.sno}}</td>
                    <td>{{item.taskname}}</td>
                    <td>{{item.taskclassfullname}}</td>
                    <td>{{item.taskgroupname}}</td>
                    <td>{{item.taskstate}}</td>
                    <td>{{item.taskcronexpr}}</td>
                    <td>{{item.tasktime1}}</td>
                    <td>{{item.tasktime2}}</td>
                    <td>
                        <button type="button" class="btn btn-info btn-xs icon-time" title="启用任务" ng-click="startTask(item)"></button>
                        <button type="button" class="btn btn-danger btn-xs icon-off" title="停用任务" ng-click="stopTask(item)"></button>
                        <button type="button" class="btn btn-success btn-xs icon-ok" title="执行任务" ng-click="runTask(item)"></button>
                    </td>
                </tr>
            </table>
        </div>
        <pagination ng-change="pageChanged()" items-per-page="itempersize" direction-links="false" boundary-links="true"
                    total-items="totalItems" ng-model="currentPage" first-text="首页" last-text="末页" previous-text="上一页"
                    next-text="下一页"></pagination>
    </div>
</div>